/*
		ServEngine framework library
		A library to fast develop JEE online applications
	
		Copyright 2008 José Ignacio de Córdoba Álvaro

		Licensed under the Apache License, Version 2.0 (the "License");
		you may not use this file except in compliance with the License.
		You may obtain a copy of the License at

				http://www.apache.org/licenses/LICENSE-2.0

		Unless required by applicable law or agreed to in writing, software
		distributed under the License is distributed on an "AS IS" BASIS,
		WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
		See the License for the specific language governing permissions and
		limitations under the License.
	
		Jose Ignacio de Cordoba Alvaro
		http://ignacio.decordoba.com
*/

package com.servengine.user;

import com.servengine.struts.ActionForm;

/**
 * Action form corresponding to Role EJB
 * @see RoleAdminActions
 */
public class RoleActionForm extends ActionForm
{
	protected Integer id;
	protected String description,name;
	protected boolean newuserrole;
	protected String[] services,adminServices;
	protected String loginText;
	protected int userCount,actionCount;
	protected String messageSubject,messageTextBody,messageHtmlBody;

	public void setId(Integer id)
	{
		this.id = id;
	}

	public Integer getId()
	{
		return id;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public String getDescription()
	{
		return description;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getName()
	{
		return name;
	}

	public void setNewUserRole(boolean value)
	{
		newuserrole=value;
	}

	public boolean isNewUserRole()
	{
		return newuserrole;
	}

	public void setServices(String[] services)
	{
		this.services = services;
	}

	public String[] getServices()
	{
		return services;
	}

	public void setAdminServices(String[] adminServices)
	{
		this.adminServices = adminServices;
	}

	public String[] getAdminServices()
	{
		return adminServices;
	}
/*	public void reset(org.apache.struts.action.ActionMapping p1, javax.servlet.http.HttpServletRequest p2)
	{
		adminservices=null;
		services=null;
	}*/

	public void setUserCount(int userCount)
	{
		this.userCount = userCount;
	}

	public int getUserCount()
	{
		return userCount;
	}

	public void setActionCount(int actionCount)
	{
		this.actionCount = actionCount;
	}

	public int getActionCount()
	{
		return actionCount;
	}

	public void setLoginText(String loginText)
	{
		this.loginText = loginText;
	}

	public String getLoginText()
	{
		return loginText;
	}

	public void setMessageSubject(String messageSubject)
	{
		this.messageSubject = messageSubject;
	}

	public String getMessageSubject()
	{
		return messageSubject;
	}

	public void setMessageTextBody(String messageTextBody)
	{
		this.messageTextBody = messageTextBody;
	}

	public String getMessageTextBody()
	{
		return messageTextBody;
	}

	public void setMessageHtmlBody(String messageHtmlBody)
	{
		this.messageHtmlBody = messageHtmlBody;
	}

	public String getMessageHtmlBody()
	{
		return messageHtmlBody;
	}
}
